import React from 'react';
import { connect } from 'react-redux'
class App extends React.Component {
  render() {
    return <div className=''>
      <h2 style={{ color: this.props.c }}>{this.props.t}</h2>
    </div>;
  }
}
App = connect((state) => {
  return {
    t: state.A.type,
    c: state.B.color
  }
})(App)
export default App